{% extends "base.html" %}
{% block content %}

<p>按月统计：</p>
<p>
{% for month in months %}
    <a href="/cw_stat/?fn={{ filename }}&by=month&key={{ month|date:'Y-m-01' }}">{{ month|date:'Y年n月' }}</a> |
{% endfor %}
</p>

<p>按周统计：</p>
<p>
{% for week in weeks %}
    <a href="/cw_stat/?fn={{ filename }}&by=week&key={{ week.0|date:'Y-m-d' }}~{{ week.1|date:'Y-m-d' }}">{{ week.0|date:'n-j' }} ~ {{ week.1|date:'n-j' }}</a><br />
{% endfor %}
</p>

<p>按天统计：</p>
<p>
{% for days in monthdays %}
    {{ days.0|date:'Y-n' }} ::
  {% for day in days %}
    <a href="/cw_stat/?fn={{ filename }}&by=day&key={{ day|date:'Y-m-d' }}">{{ day|date:'j' }}</a>
  {% endfor %}<br />
{% endfor %}
</p>


{% endblock %}
